package com.dcn.sign.controller;

import com.dcn.sign.util.DataStrUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author xi.yang
 * @create 2019-04-25 14:56
 **/
@Controller
public class AdminController {
    private static final String ADMIN_PWD_CODE = "559DB8F602C3572F3935558CD4C3F397";
    @RequestMapping(value = {"/admin"})
    public String adminIndex(HttpServletRequest request, Map<String, Object> map) {
        // 获取所有的月份和当前月份
        List<String> months = DataStrUtil.getMonthStrs();
        map.put("months", months);
        return "admin";
    }
}
